{% extends 'base.html' %}

{% block content %}


<div class="wrapper wrapper-content animated fadeIn">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins" id="all">
                <div class="ibox-title">
                    <h5> CRON JOB列表</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form id="asset_form">

                        <table class="table table-striped table-bordered table-hover " id="editable" name="editable">
                            <thead>
                                <tr>
                                    <th class="text-center">cron_job</th>
                                    <th class="text-center">last_run </th>
                                </tr>
                            </thead>
                            <tbody>
                            {% for dic in cron_list %}
                                {% for job,time in dic.items %}
                                    <tr class="gradeX">
                                        <td class="text-center" name="id" value="" data-editable='false'>{{ job }}</td>
                                        <td class="text-center"> {{ time }} </td>
                                    </tr>
                                {% endfor %}
                            {% endfor %}
                            </tbody>
                        </table>
                    </form>
                </div>
                <ul class="pager">
                    {% if cron_list.has_previous %}
                        <li><a href="?page={{ cron_list.previous_page_number }}">Previous</a></li>
                    {% endif %}
                        <li>Page {{ cron_list.number }} of {{ cron_list.paginator.num_pages }}.</li>
                    {% if cron_list.has_next %}
                        <li><a href="?page={{ cron_list.next_page_number }}">Next</a></li>
                    {% endif %}
                </ul>
            </div>
        </div>
    </div>
</div>



{% endblock %}
